package com.sikaryofficial.system.api.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sikaryofficial.common.core.annotation.LocalDateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 用户对象 sys_user
 *
 * @author qinjinyuan
 */
@ApiModel(description = "用户对象 sys_user")
@Getter
@Setter
@ToString
public class SysUserExtReq {

    @ApiModelProperty(hidden = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    /**
     * 审批通过标识
     */
    @ApiModelProperty("审批通过标识")
    private boolean hasValid;
    /**
     * 框架合同期限
     */
    @ApiModelProperty("框架合同期限")
    @LocalDateTimeFormat(pattern = "yyyy-MM-dd")
    private Date frameworkContractDuration;

    @ApiModelProperty("名字")
    private String firstName;

    @ApiModelProperty("姓")
    private String lastName;

    @ApiModelProperty("国家")
    private String country;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("电话")
    private String phoneNumber;
}
